package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 客户实体类
 */
@ApiModel(value = "客户实体类",description = "封装客户相关相关信息")
@TableName("t_client")
public class ClientBean {
    /**编号**/
    @ApiModelProperty("编号")
    @TableId(value = "pk_clientId",type = IdType.AUTO)
    private Integer id;
    /**客户名称**/
    @ApiModelProperty("客户名称")
    @TableField("c_name")
    private String name;
    /**负责人**/
    @ApiModelProperty("负责人")
    @TableField("c_person")
    private String person;
    /**负责人电话**/
    @ApiModelProperty("负责人电话")
    @TableField("c_phone")
    private String phone;
    /**地址**/
    @ApiModelProperty("地址")
    @TableField("c_address")
    private String address;
    /**邮箱**/
    @ApiModelProperty("邮箱")
    @TableField("c_email")
    private String email;
    /**经营范围**/
    @ApiModelProperty("经营范围")
    @TableField("c_scope")
    private String scope;

    public ClientBean() {
    }

    public ClientBean(String name, String person, String phone, String address, String email, String scope) {
        this.name = name;
        this.person = person;
        this.phone = phone;
        this.address = address;
        this.email = email;
        this.scope = scope;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "ClientBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", person='" + person + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                ", scope='" + scope + '\'' +
                "}\n";
    }
}
